<style type="text/css">
    .center{text-align:center}
    .input{width:300px !important}
</style>
<body>
<div class="bjy-admin-nav">
    <i class="fa fa-home"></i> 首页
    &gt;
    网站配置
</div>
<ul id="myTab" class="nav nav-tabs">
    <li class="active">
        <a href="javascript:;">网站配置</a>
    </li>
</ul>
<form class="form-inline">
    <table class="table table-striped table-bordered table-hover table-condensed">
        <tr>
            <th class="center" style="width:100px;">联系电话(1)：</th>
            <td>
                <input class="form-control input" type="text" name="tel1" placeholder="请填写联系电话" maxlength="20" value="{$find.tel1}">
            </td>
        </tr>
        <tr>
            <th class="center">联系电话(2)：</th>
            <td>
                <input class="form-control input" type="text" name="tel2" placeholder="请填写联系电话" maxlength="20" value="{$find.tel2}">
                 可不填
            </td>
        </tr>
        <tr>
            <th class="center">邮箱：</th>
            <td>
                <input class="form-control input" type="text" name="email" placeholder="请填写邮箱" maxlength="30" value="{$find.email}">
            </td>
        </tr>
        <tr>
            <th class="center">客服QQ：</th>
            <td>
                <input class="form-control input" type="text" name="qq" placeholder="请填写客服QQ" maxlength="30" value="{$find.qq}">
            </td>
        </tr>
        <tr>
            <th></th>
            <td>
                <input class="btn btn-success submit" type="button" value="修改">
            </td>
        </tr>
    </table>
</form>
</body>
<script type="text/javascript">
    $('.submit').click(function(){

        $.post('',$('input[name]').serialize(),function(data){
            if(data.code){
                alert(data.msg);
                window.location.href="{:url('config')}";
            }else{
                alert(data.msg);
            }
        },'json');
    });
</script>